<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>

		<link rel="stylesheet" type="text/css"
			href="<%=request.getContextPath()%>/ext/core/ext/resources/css/ext-all.css" />
		<link rel="stylesheet" type="text/css"
			href="<%=request.getContextPath()%>/ext/core/extra/css/button.css" />
		<link rel="stylesheet" type="text/css"
			href="<%=request.getContextPath()%>/ext/core/extra/css/common.css" />

		<script type="text/javascript"
			src="<%=request.getContextPath()%>/ext/core/ext/adapter/ext/ext-base.js"></script>
		<script type="text/javascript"
			src="<%=request.getContextPath()%>/ext/core/ext/ext-all.js"></script>
		<script type="text/javascript"><!--
		function doSubmit(){
			var level = document.getElementById("typeCode").value;
			var text11 = document.getElementById("transLabel").value;
			var pid = document.getElementById("ptransID").value;
			var purl = document.getElementById("pageURL").value;
			if(text11 == null || text11 == "" ){
				Ext.Msg.alert("提示","显示文本为空！");
				return ;
			}
			Ext.MessageBox.confirm("请确认","是否新增节点？",function(button,text){
					if(button=="yes"){
						document.forms[0].action = "loadTreeAction.do?action=addTreeNode" ;
						document.forms[0].submit();
					}
				});
		}
	--></script>
	</head>
	<body>
		<center>
			<br>
			<br>
			<br>
			<br>
			<br>
			<br>
			<form action="" method="post">
			<%  String sign = (String)request.getAttribute("sign");
				if( sign != null && !sign.equals("") ){%>
					<div align="center"><font color="red"><%=sign %></font></div>
			<%  } %>
				<table border="1" bordercolor="skyblue" cellpadding="0"
					cellspacing="0">
					<tr>
						<td>
							<table>
								<tr>
									<td>
										父节点的层：
									</td>
									<td>
										<input type="text" name="typeCode"
											value="<%=request.getAttribute("nlevel")%>">
									</td>
									<td>
										text：
									</td>
									<td>
										<input type="text" name="transLabel">
									</td>
								</tr>
								<tr>
									<td>
										父节点ID：
									</td>
									<td>
										<input type="text" name="ptransID"
											value="<%=request.getAttribute("nid")%>" readonly="true">
									</td>
									<td rowspan="2">
										URL：
									</td>
									<td rowspan="2">
										<textarea rows="3" cols="17" name="pageurl"></textarea>
									</td>
								</tr>
								<tr>
									<td>
										父节点的显示文本：
									</td>
									<td>
										<input type="text" name="ptranstext"
											value="<%=request.getAttribute("ntext")%>" readonly="true">
									</td>

								</tr>
								<tr>
									<td align="center" colspan="4">
										<input type="button" value="submit" onclick="doSubmit()">
										&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
										<input type="reset" value="reset">
										&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
										<input type="button" value="back"
											onclick="javascript:history.back();">
									</td>
								</tr>
							</table>
						</td>
					</tr>
				</table>
			</form>
		</center>
	</body>
</html>



